package com.primus.server.service.store.impl;

import com.primus.server.entity.store.Comment;
import com.primus.server.repository.CommentRepository;
import com.primus.server.service.BaseServiceImpl;
import com.primus.server.service.store.CommentService;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

@Service
public class CommentServiceImpl extends BaseServiceImpl<Comment> implements CommentService {

    private final CommentRepository commentRepository;

    CommentServiceImpl(CommentRepository commentRepository) {
        this.commentRepository = commentRepository;
    }
    @Override
    protected JpaRepository<Comment, Long> getRepository() {
        return this.commentRepository;
    }
}
